﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LandandSurvey.Controls
{
    public partial class SurveyorUserControl : System.Web.UI.UserControl
    {
        protected void Page_Load( object sender, EventArgs e )
        {

        }

        public void Setup( Surveyor surveyor )
        {
            lblId.InnerText = surveyor.Id.ToString();
            lblName.InnerText = surveyor.Name;
            lblStatus.InnerText = surveyor.Status.ToString();
            lnkEnable.Attributes.Add( "href", "../Surveyors.aspx?rmid=" + surveyor.Id );
        }
    }
}